// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import ElementUI from 'element-ui';

//按需加载
import {
    Button,
    Select,
    Row,
    Col,
    Menu,
    Submenu,
    MenuItem,
    Table,
    TableColumn,
    Scrollbar,
    Card,
    Form,
    FormItem,
    Input,
    Dialog,
    Message,
    Breadcrumb,
    BreadcrumbItem,
    Pagination
} from 'element-ui'
//自定义主题
import './assets/theme/index.css'

Vue.use(Button)
Vue.use(Select)
Vue.use(Row)
Vue.use(Col)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Scrollbar)
Vue.use(Card)
Vue.use(Dialog)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Pagination)
Vue.config.productionTip = false

/* eslint-disable no-new */
Object.defineProperty(Vue.prototype, 'UPLOAD_URL', {value: process.env.UPLOAD_URL});
Object.defineProperty(Vue.prototype, 'BASE_URL', {value: process.env.BASE_URL});
Object.defineProperty(Vue.prototype, '$message', {value: Message});
console.log('技术支持:成都思多客网络科技有限公司')
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})
